﻿using System.Windows;

namespace GraphMyCode.Client.Controls
{
	public partial class WaitIndicator
	{
		public WaitIndicator()
		{
			InitializeComponent();

			if (!System.ComponentModel.DesignerProperties.GetIsInDesignMode(this))
				LayoutRoot.Visibility = Visibility.Collapsed;
		}

		public void Start()
		{
			LayoutRoot.Visibility = Visibility.Visible;
			IndicatorStoryboard.Begin();
		}

		public void Stop()
		{
			LayoutRoot.Visibility = Visibility.Collapsed;
			IndicatorStoryboard.Stop();
		}
	}
}